window.onload = function(){
};
var answer = "" ;
var username = "";
var password = "";

function inputFocus(inp) {
    inp.value = "" ;
}

function getUsername(inp) {
    username = inp.value ;
    /*
    * 判断用户输入的用户名长度是否符合*/
    if (username.length != 9){
        var dom = window.document.getElementById("usernameIsIncorrect") ;
        dom.style.display = "block" ;
    }
    else {
        var dom = window.document.getElementById("usernameIsIncorrect") ;
        dom.style.display = "none" ;
    }
}

function getPassword(inp) {
    password = inp.value ;

    /*
    * 判断用户输入的密码长度是否符合*/
    if (password.length > 16 || password.length <8){
        var dom = window.document.getElementById("passwordIsNotRight") ;
        dom.style.display = "block" ;
    }
    else {
        var dom = window.document.getElementById("passwordIsNotRight") ;
        dom.style.display = "none" ;
    }
}

function getVerification(inp) {

}

function signUp() {
    // window.location.href = "../register/register.html"
    alert("password:" + password) ;
    alert("username:" + username) ;
}
